package com.practice.rmi.client;

import java.rmi.Naming;

import com.practice.rmi.server.IHelloService;

public class Client {
	
	public static void main(String[] args) {
		try {
			IHelloService hello = (IHelloService)Naming.lookup("rmi://127.0.0.1:8888/Hello");
			System.out.println(hello.sayHello("test"));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
